package cz.muni.fi.pa165.musiclibrary.musiclibraryweb.pages.error;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.StringResourceModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

import cz.muni.fi.pa165.musiclibrary.musiclibraryweb.pages.AbstractMusicLibraryPage;

/**
 *
 * @author Maros Kucbel
 * @date 2012-12-01T15:51:13+0100
 */
public final class ErrorPage extends AbstractMusicLibraryPage {

    /**
     * Constructor.
     */
    public ErrorPage() {
        this(new PageParameters());
    }
    
    /**
     * Constructor
     * @param pageParameters Parameters for page initialization.
     */
    public ErrorPage(final PageParameters pageParameters) {
        super(pageParameters);
    }

    @Override
    protected void onInitialize() {
        super.onInitialize();
        this.initComponents();
    }
    
    private void initComponents() {
        this.add(new Label("errorMessage", new StringResourceModel("generalError.message", this, null)));
    }
}